//package com.shuziren.service.scheduled;
//
//import com.shuziren.domain.CandidateEntity;
//import com.shuziren.pojo.entity.InterviewSchedule;
//import com.shuziren.service.CandidateService;
//import com.shuziren.service.InterviewScheduleService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Service;
//
//@Service
//public class InterviewReminderService {
//    @Autowired
//    private CandidateService candidateService;
//    @Autowired
//    private com.shuziren.service.sms.AliyunSmsService smsService;
//    @Autowired
//    private InterviewScheduleService interviewScheduleService;
//
//    public void sendReminder(InterviewSchedule schedule) {
//        CandidateEntity candidate = candidateService.getById(schedule.getCandidateId());
//        if (candidate != null && candidate.getPhone() != null) {
//            smsService.sendSms(candidate.getPhone(), candidate.getName(), schedule.getInterviewTime());
//            System.out.println("该面试了孩子");
//            schedule.setSendSms(1);
//            interviewScheduleService.update(schedule);
//        }
//    }
//}